<div id="addMeterWaterModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">添加抄表</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">费用类型</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addMeterWaterInfo.feeTypeCd" @change="_changeAddMeterWaterFeeTypeCd(addMeterWaterInfo.feeTypeCd)">
                                        <option selected disabled value="">必填，请选择费用类型</option>
                                        <option value="888800010015">水费</option>
                                        <option value="888800010016">电费</option>
                                        <option value="888800010009">煤气费</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">收费项目</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addMeterWaterInfo.configId" @change="changeFeeConfig()">
                                        <option selected disabled value="">必填，请选择收费项目</option>
                                        <option v-for="(item,index) in addMeterWaterInfo.feeConfigs" :key="index"
                                            v-bind:value="item.configId">{{item.feeName}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">抄表类型</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addMeterWaterInfo.meterType" @change="_changeAddMeterType()">
                                        <option selected disabled value="">必填，请选择抄表类型</option>
                                        <option v-for="(item,index) in addMeterWaterInfo.meterTypes" :key="index"
                                            v-bind:value="item.typeId">{{item.typeName}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row" v-show="addMeterWaterInfo.hasRoom == false">
                                <label class="col-sm-2 col-form-label">楼栋</label>
                                <div class="col-sm-10">
                                    <vc:create path="property/floorSelect2" parentModal="addMeterWaterModel" namespace="addMeterWater">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="form-group row" v-show="addMeterWaterInfo.hasRoom == false">
                                <label class="col-sm-2 col-form-label">单元</label>
                                <div class="col-sm-10">
                                    <vc:create path="property/unitSelect2" parentModal="addMeterWaterModel" callBackListener="addMeterWater" callBackFunction="notify" namespace="addMeterWater">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="form-group row" v-show="addMeterWaterInfo.hasRoom == false">
                                <label class="col-sm-2 col-form-label">房屋</label>
                                <div class="col-sm-10">
                                    <vc:create path="property/roomSelect2" parentModal="addMeterWaterModel" callBackListener="addMeterWater" callBackFunction="notify" namespace="addMeterWater">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="form-group row" v-show="addMeterWaterInfo.hasRoom == true">
                                <label class="col-sm-2 col-form-label">收费对象</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.ownerName" type="text" disabled="disabled" placeholder="必填，请填写房屋" class="form-control ">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">上期度数</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.preDegrees" type="text" placeholder="必填，请填写上期度数" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">本期度数</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.curDegrees" type="text" placeholder="必填，请填写本期度数" class="form-control addCurDegrees" @change="_getChange()">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">上期读表时间</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.preReadingTime" type="text" placeholder="必填，请填写上期读表时间" class="form-control addPreReadingTime">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">本期读表时间</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.curReadingTime" type="text" placeholder="必填，请填写本期读表时间" class="form-control addCurReadingTime">
                                </div>
                            </div>
                            <div class="form-group row" v-if="addMeterWaterInfo.computingFormula == '9009'">
                                <label class="col-sm-2 col-form-label">单价</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.price" type="text" placeholder="必填，请填写单价" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">备注</label>
                                <div class="col-sm-10">
                                    <input v-model="addMeterWaterInfo.remark" type="text" placeholder="选填，请填写备注" class="form-control">
                                </div>
                            </div>

                            <div class="ibox-content">
                                <span>注：单元选择为0表示为商铺</span>
                                <button class="btn btn-primary float-right" type="button" v-on:click="saveMeterWaterInfo()">
                                    <i class="fa fa-check"></i>&nbsp;保存
                                </button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">
                                    <i class="fa fa-times"></i>&nbsp;取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>